<?php
class Pageley_ContentManager_SiteConfiguration {
    private $namespaceConfigurations;
    
    public function setNamespaceConfigurations($namespaceConfigurations) {
        $this->namespaceConfigurations = $namespaceConfigurations;
    }
    
    public function getNamespaceConfigurations() {
        return $this->namespaceConfigurations;
    }
    
    public function getTypes() {
        $types = new Pageley_Util_ArrayMap();
        foreach($this->getNamespaceConfigurations() as $namespaceConfiguration) {
            foreach($namespaceConfiguration->getTypeConfigurations() as $typeConfiguration) {
                $types->add($typeConfiguration->getType());
            }
        }
        return $types;
    }
}